package homework4.com.zut.aop_proxy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAopProxy {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("aop-proxy.xml");
		UserService userService = ac.getBean("userService", UserService.class);
		userService.addUser();
		userService.updateUser();
		userService.deleteUserById();
		userService.findUserById();
	}
}